package com.hoyue.system.service.impl;

import com.hoyue.system.bean.Role;
import com.hoyue.system.dao.RoleMapper;
import com.hoyue.system.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

/**
 * @author 空白
 * @version 1.0
 * Create by 2019/08/08 15:55
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleMapper roleMapper;


    @Override
    public Set<Role> getRoles(Integer userId) {
        return roleMapper.getRoles(userId);
    }

    @Override
    public int insertRole(int userId, int roleId) {
        return roleMapper.insertRole(userId, roleId);
    }
}
